package cn.stylefeng.guns.modular.system.service.impl;

import cn.stylefeng.guns.modular.system.dao.AppOrderInfoMapper;
import cn.stylefeng.guns.modular.system.entity.AppOrderInfo;
import cn.stylefeng.guns.modular.system.service.AppOrderInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

import java.util.List;
import java.util.Map;

/**
 * @ClassName OrderInfoServiceImpl
 * @Author lzy
 * @Date 2020/1/12 4:40
 * @VERSION 1.0
 **/
@Service
public class OrderInfoServiceImpl extends ServiceImpl<AppOrderInfoMapper, AppOrderInfo> implements AppOrderInfoService {
    @Override
    public List<Map<Object,Object>> findListByCondition(String startTime, String endTime, String orderNo, Long infoUserId, String status, List<String> subUserIds) {
        if(!ObjectUtils.isEmpty(orderNo)){
            orderNo = orderNo + "%";
        }
        List<Map<Object,Object>> list = baseMapper.findListByCondition(startTime, endTime, orderNo, infoUserId, status, subUserIds);
        return list;
    }
}
